home *** CD-ROM | disk | FTP | other *** search
/ Aminet 31 / Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso / Aminet / dev / amos / AMOSList-0199.lzh / AMOSLIST / 000150_nobody_Thu Feb 11 13:54:47 1999.msg < prev   
Internet Message Format  |  1999-02-11  |  2KB

  1. Received: from onelist.com (pop.onelist.com [209.207.164.213])
  2.     by osf1.gmu.edu (8.8.8/8.8.8) with SMTP id NAA02849
  3.     for <mcox4@osf1.gmu.edu>; Thu, 11 Feb 1999 13:54:46 -0500 (EST)
  4. Received: (qmail 10786 invoked by alias); 11 Feb 1999 18:55:04 -0000
  5. Received: (qmail 10732 invoked from network); 11 Feb 1999 18:55:03 -0000
  6. Received: from unknown (HELO mail.enterprise.net) (194.72.192.18) by pop.onelist.com with SMTP; 11 Feb 1999 18:55:03 -0000
  7. Received: from enterprise.net (andrewcrowe@max11-144.enterprise.net [194.72.199.144]) by mail.enterprise.net (8.8.5/8.8.5) with SMTP id SAA13392 for <amos-list@onelist.com>; Thu, 11 Feb 1999 18:54:34 GMT
  8. From: Andrew Crowe <andrewcrowe@enterprise.net>
  9. To: amos-list@onelist.com
  10. Date: Thu, 11 Feb 1999 18:53:13 +0000
  11. Message-ID: <yam7711.653.1197682264@mail.enterprise.net>
  12. In-Reply-To: <yam7711.1835.139849408@smtp.image.dk>
  13. X-Mailer: YAM 2.0 Preview5 - Amiga Mailer by Marcel Beck - http://www.yam.ch
  14. Organization: Manta Soft
  15. Mailing-List: list amos-list@onelist.com; contact amos-list-owner@onelist.com
  16. Delivered-To: mailing list amos-list@onelist.com
  17. Precedence: bulk
  18. List-Unsubscribe: <mailto:amos-list-unsubscribe@ONElist.com>
  19. Reply-to: amos-list@onelist.com
  20. Mime-Version: 1.0
  21. Content-Type: text/plain
  22. Subject: [amos-list] Re: A bug in 'x MOD y' command!!
  23. Status: O
  24. X-Status: 
  25.  
  26. From: Andrew Crowe <andrewcrowe@enterprise.net>
  27.  
  28. Hi Everybody,
  29.  
  30. >>    a=abs(this) Mod 20
  31. >>    if this<0 then a=-a
  32.  
  33. > make that
  34.  
  35. > a=(abs(THIS) Mod 20)*Sgn(THIS)
  36.  
  37.    Well, thanks but, I didn't actually want -1 mod 20 to be -1 (dang). 
  38.  
  39. What I was trying to do with it needed -1 mod 20 to be 19. 
  40.  
  41. Oh well, I guess I'll just have to do
  42.  
  43. repeat
  44.    add a,20
  45. until a>0
  46. x=a mod 20
  47.  
  48.  
  49.  
  50.  
  51. See ya.
  52. -- 
  53.        Manta Soft  -  Amiga programing & web page designing
  54.    Http://www.geocities.com/Eureka/Gold/1713/         ICQ: 21829166
  55.   - --------------------- Quote of the day: ---------------------- -
  56. Success is like a fart - only your own smells nice.
  57. -- James P. Hogan
  58.  
  59.  
  60.  
  61. ------------------------------------------------------------------------
  62. To unsubscribe from this mailing list, or to change your subscription
  63. to digest, go to the ONElist web site, at http://www.onelist.com and
  64. select the User Center link from the menu bar on the left.
  65. ------------------------------------------------------------------------
  66. Official AMOS WWW: http://members.xoom.com/AmosFactory/front.html